package com.community.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.community.entity.User;

/**
 * (User)表数据库访问层
 *
 * @author xn
 * @since 2021-09-26 12:37:10
 */
public interface UserDao extends BaseMapper<User> {
//    @Select("SELECT user.*,role.* FROM `user`,role WHERE `user`.usr_role_id=role.role_id AND `user`.account=#{account}")
    User getUserAndRoleByAccount(String account);
}

